package com.xxx.service;

import com.xxx.domain.CourseOrder;
import com.baomidou.mybatisplus.service.IService;
import com.xxx.dto.CreateOrderDto;
import com.xxx.dto.KillCreateOrderDto;
import com.xxx.dto.UpdateOrderStateDto;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jh
 * @since 2025-09-10
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(CreateOrderDto courseOrder);

    //保存订单和订单明细
    void saveOrderAndItem(CourseOrder courseOrder);

    /**
     * 根据订单编号修改订单状态
     * @param updateOrderStateDto
     */
    void updateOrderState(UpdateOrderStateDto updateOrderStateDto);

    String killPlaceOrder(KillCreateOrderDto killCreateOrderDto);
}
